/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class HealthPot {
    static categoryCode = '010050011';

    static categoryName = '养生壶';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return HealthPot.categoryCode;
    }

    get categoryName() {
        return HealthPot.categoryName;
    }

    getCurrentStatus(params) {
        return command({
            method: 'getCurrentStatus',
            methodId: 'pgh0u2vA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'p3deZDkL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getInsulationRemainTime(params) {
        return command({
            method: 'getInsulationRemainTime',
            methodId: 'pkpDAsVS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getInsulationTime(params) {
        return command({
            method: 'getInsulationTime',
            methodId: 'ptRSxcld',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'phEqY8Cr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetTemperature(params) {
        return command({
            method: 'getTargetTemperature',
            methodId: 'pdN7VYIZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setContinue(params) {
        return command({
            method: 'setContinue',
            methodId: 'pZgRrSFP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setInsulationTime(params) {
        return command({
            method: 'setInsulationTime',
            methodId: 'pGoxpVhw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'pDrhgGcC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPause(params) {
        return command({
            method: 'setPause',
            methodId: 'pUPQLLxm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'peH3bdnl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'ppAX3ZR5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetTemperature(params) {
        return command({
            method: 'setTargetTemperature',
            methodId: 'p1vZQ30U',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default HealthPot;
